import request from '@/utils/request'

// 查询外出务工补贴列表
export function listSubsidy(query) {
  return request({
    url: '/approve/subsidy/list',
    method: 'get',
    params: query
  })
}

// 查询外出务工补贴详细
export function getSubsidy(id) {
  return request({
    url: '/approve/subsidy/' + id,
    method: 'get'
  })
}

// 新增外出务工补贴
export function addSubsidy(data) {
  return request({
    url: '/approve/subsidy',
    method: 'post',
    data: data
  })
}

// 修改外出务工补贴
export function updateSubsidy(data) {
  return request({
    url: '/approve/subsidy/edit',
    method: 'post',
    data: data
  })
}

// 删除外出务工补贴
export function delSubsidy(id) {
  return request({
    url: '/approve/subsidy/remove/' + id,
    method: 'post'
  })
}

// 外出务工人员审核--通过
export function checkApproved(id) {
  return request({
    url: '/approve/subsidy/approved/' + id,
    method: 'post'
  })
}

// 外出务工人员审核--不通过
export function checkDisApproved(id) {
  return request({
    url: '/approve/subsidy/disApproved/' + id,
    method: 'post'
  })
}

// 外出务工人员审核--重置
export function checkUnApproved(id) {
  return request({
    url: '/approve/subsidy/unApproved/' + id,
    method: 'post'
  })
}
